package cn.jtfadmin.base.shiro.events;

import cn.jtfadmin.base.lang.common.event.AkfhApplicationEvent;
import cn.jtfadmin.base.lang.common.security.UserDetails;


public class UserBuildSuccessEvent extends AkfhApplicationEvent {

    protected String userId;

    protected String userType;


    public UserBuildSuccessEvent(UserDetails userDetails, String userId, String userType) {
        super(userDetails);
        this.userId = userId;
        this.userType = userType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }


    public UserDetails getUserDetails(){
        return (UserDetails) getSource();
    }
}
